<?php

namespace Agent\Controller;

class CommonController extends CommonBaseController {
	public function __construct() {
		parent::__construct ();
		$this->checkUser();
	}
	
	function checkUser(){
		if(!session("ssc_agent")){
			$this->redirect("Login/login");
		}
		$agent_info = session("ssc_agent");
		$this->assign("agent_id",$agent_info['agent_id']);
	}
	/* 进入系统前的过滤，如果返回false会进入错误页面 */
	protected function init_show() {
		return true;
	 }
}